<?php 
/*
$JA#COPYRIGHT$
*/
// no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<!--<ul class="latestnews<?php //echo $params->get('moduleclass_sfx'); ?>">-->
<table class="tablelist latest-resumes-list">
<?php foreach ($list as $item) :  ?>
	<tr>
		<td width="40%">
		<?php 
		if ($item->image)
		{
			$temp_path = str_replace('\\',DS,JPATH_SITE.DS.$item->image);
			$temp_path = str_replace('/',DS,$temp_path);
			if (file_exists($temp_path)){
				$width = $params->get("imageWidth", "50");
				$height = $params->get("imageHeight", "50");
				$item->image = jaJBResize($item->image, $width, $height);
				$src = JURI::base().$item->image;
				$temp_path = str_replace('\\',DS,JPATH_SITE.DS.$item->image);
				$temp_path = str_replace('/',DS,$temp_path);
				$imgInfo = getimagesize($temp_path);
			}else{
				$src = JURI::base()."modules/mod_jalatest_resumes/images/no-image.gif";
				$imgInfo = array();
				$imgInfo[0] = 50;
				$imgInfo[1] = 50;				
			}
		}
		else{
			$src = JURI::base()."modules/mod_jalatest_resumes/images/no-image.gif";
			$imgInfo = array();
			$imgInfo[0] = 50;
			$imgInfo[1] = 50;
		}
		?>
			<a href="<?php echo $item->link; ?>">
				<img src="<?php echo $src ?>" width="<?php echo $imgInfo[0]; ?>" height="<?php echo $imgInfo[1]; ?>" alt="<?php echo $item->name; ?>"/>
			</a
		></td>
		<td>
<!--	<li class="latestnews<?php //echo $params->get('moduleclass_sfx'); ?>">-->
		<a href="<?php echo $item->link; ?>">
			<?php echo $item->name; ?></a> <br />
			<?php echo $item->text ?>
<!--	</li>-->
		</td>
	</tr>
<?php endforeach; ?>
<!--</ul>-->
</table>